#ifndef MOTOR_H
#define MOTOR_H

#include "serial.h"

class Motor
{
  public:
    Motor();
    
    void motorForward(int, double);
    void motorReverse(int, double);
    void motorBrake(int,double);
    double getTemperature(int);
    double getVoltage(int);
    double getSpeed(int);
    
    void exitSafeStart(int);

    int getErrors(int);
  
  private:
    Serial *ftdi;
    

};
#endif
